package cn.enine.tbcharge.ui;


import android.annotation.SuppressLint;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import cn.enine.tbcharge.R;

@SuppressLint("NewApi")
public class SyFragment extends Fragment {

    LinearLayout sfview,sfxmview;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        View view = inflater.inflate(R.layout.sy_fragment, null);
        initView(view);
        return view;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onActivityCreated(savedInstanceState);


    }

    public void initView(View v){
        sfview =(LinearLayout)v.findViewById(R.id.sfview);
        sfview.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),SflistActivity.class));
            }
        });
        sfxmview =(LinearLayout)v.findViewById(R.id.sfxmview);
        sfxmview.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(),XmlistActivity.class));
            }
        });
    }



}
